import Vue from 'vue'
import Vuex from 'vuex'
import persistence from 'vuex-uniapp-persistence'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    text: '测试'
  },
  mutations: {
    updated(state) {
      state.text = '更新了'
    }
  },
  plugins: [persistence()]
})
export default store
